<template>
	<div>
		<div class="recommend-title">周末推荐</div>
		<ul >
			<li class="item border-bottom" v-for="item of list" :key="item.id">
				<div class="item-img-wrapper">
					<img class="item-img" :src="item.imgUrl" :alt="item.title" />
				</div>
				<div class="item-info">
					<p class="item-title">{{item.title}}</p>
					<p class="item-desc">{{item.desc}}</p>
				</div>
								
			</li>
		</ul>
	</div>
</template>

<script>
	export default{
		name:'Weekend',
		props:{
			list:Array
		}
	}
</script>

<style lang="stylus" scoped>
@import '~styles/varibles.styl'
	.recommend-title
		line-height:.8rem
		background-color:#eee
		text-indent:.2rem
	.item
		padding:0
		.item-img-wrapper
			padding:0
			overflow:hidden
			.item-img
				width:100%
		.item-info
			padding:.2rem
			min-width:0
			.item-title
				line-height:.5rem
				font-size:.35rem
				ellipsis()
			.item-desc
				line-height:.4rem
				font-size:.25rem
				color:#ccc
				ellipsis()
				
</style>